package com.hm.add1_7;

import java.util.ArrayList;
import java.util.Collections;

public class Test {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list,"dog","cat","pig");
        Store store = new Store();
        for (String s : list) {
            store.getInstance(s).voice();
        }
    }
}
